//
//  ViewController.m
//  YSNetworkDemo
//
//  Created by 岳云石 on 2017/3/26.
//  Copyright © 2017年 岳云石. All rights reserved.
//

#import "ViewController.h"
#import "YSNETWORKING.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [YSNETWORKING requestWithURLFromRequestUrl:@"https://www.baidu.com" parameters:nil requireToken:NO httpMethod:HttpMethod_GET progress:nil requestSuccess:^(id responseObject) {
        NSLog(@"responseObject = %@",responseObject);
    } requestFailed:^(NSError *error) {
        NSLog(@"error = %@",error);
    }];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
